package com.moter.demo01.io.reader_writer.buffered;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedWriterDemo {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter(new File("src\\main\\java\\com\\moter\\demo01\\io\\reader_writer\\buffered\\buffered.txt"));
        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter,10);
        bufferedWriter.write("moter1234567890",2,8);
        bufferedWriter.append(new StringBuffer("123"),0,2);

        bufferedWriter.close();
        fileWriter.close();
    }
}
